<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>Edit Question</h1>

<form th:action="@{${#request.getRequestURI()}}" method="post" th:switch="${#request.getRequestURI()}">
    <label th:case="'/exam/update'">
        <input type="text" hidden="hidden" name="qid" th:value="${question.qid}"><br>
        title <input type="text" name="title" th:value="${question.title}"><br>
        qInfo <input type="text" name="qInfo" th:value="${question.getQInfo()}"><br>
        caseIn<input type="text" name="caseIn" th:value="${question.caseIn}"><br>
        caseOut<input type="text" name="caseOut" th:value="${question.caseOut}"><br>
        testNum <input type="text" name="testNum" th:value="${question.testNum}"><br>
        in1<input type="text" name="in1" th:value="${question.in1}"><br>
        out1<input type="text" name="out1" th:value="${question.out1}"><br>
        in2<input type="text" name="in2" th:value="${question.in2}"><br>
        out2 <input type="text" name="out2" th:value="${question.out2}"><br>
        in3<input type="text" name="in3" th:value="${question.in3}"><br>
        out3<input type="text" name="out3" th:value="${question.out3}"><br>
    </label>
    <label th:case="'/exam/add'">
        title<input type="text" name="title"><br>
        qInfo<input type="text" name="qInfo"><br>
        caseIn<input type="text" name="caseIn"><br>
        caseOut<input type="text" name="caseOut"><br>
        testNum<input type="text" name="testNum"><br>
        in1<input type="text" name="in1"><br>
        out1<input type="text" name="out1"><br>
        in2<input type="text" name="in2"><br>
        out2<input type="text" name="out2"><br>
        in3<input type="text" name="in3"><br>
        out3<input type="text" name="out3"><br>
    </label><br>

    <input type="submit">
</form>
</body>
</html>